/* USER CODE BEGIN Header */
/**
  ******************************************************************************
 * @file        main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32g4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED_GREEN_Pin GPIO_PIN_13
#define LED_GREEN_GPIO_Port GPIOC
#define LED_WHITE_Pin GPIO_PIN_14
#define LED_WHITE_GPIO_Port GPIOC
#define LED_BLUE_Pin GPIO_PIN_15
#define LED_BLUE_GPIO_Port GPIOC
#define VA_Pin GPIO_PIN_0
#define VA_GPIO_Port GPIOC
#define VB_Pin GPIO_PIN_1
#define VB_GPIO_Port GPIOC
#define VC_Pin GPIO_PIN_2
#define VC_GPIO_Port GPIOC
#define INJECT_Pin GPIO_PIN_3
#define INJECT_GPIO_Port GPIOC
#define IC_Pin GPIO_PIN_0
#define IC_GPIO_Port GPIOA
#define IB_Pin GPIO_PIN_1
#define IB_GPIO_Port GPIOA
#define IA_Pin GPIO_PIN_2
#define IA_GPIO_Port GPIOA
#define IBUS_Pin GPIO_PIN_3
#define IBUS_GPIO_Port GPIOA
#define DAC_Pin GPIO_PIN_4
#define DAC_GPIO_Port GPIOA
#define RGB_Pin GPIO_PIN_5
#define RGB_GPIO_Port GPIOA
#define HALL_A_Pin GPIO_PIN_6
#define HALL_A_GPIO_Port GPIOA
#define HALL_B_Pin GPIO_PIN_7
#define HALL_B_GPIO_Port GPIOA
#define ADJR_Pin GPIO_PIN_4
#define ADJR_GPIO_Port GPIOC
#define VBUS_Pin GPIO_PIN_5
#define VBUS_GPIO_Port GPIOC
#define HALL_C_Pin GPIO_PIN_0
#define HALL_C_GPIO_Port GPIOB
#define NTC1_Pin GPIO_PIN_1
#define NTC1_GPIO_Port GPIOB
#define PWM_AL_Pin GPIO_PIN_13
#define PWM_AL_GPIO_Port GPIOB
#define PWM_BL_Pin GPIO_PIN_14
#define PWM_BL_GPIO_Port GPIOB
#define PWM_CL_Pin GPIO_PIN_15
#define PWM_CL_GPIO_Port GPIOB
#define BTN_K4_Pin GPIO_PIN_6
#define BTN_K4_GPIO_Port GPIOC
#define BTN_K3_Pin GPIO_PIN_7
#define BTN_K3_GPIO_Port GPIOC
#define BTN_K2_Pin GPIO_PIN_8
#define BTN_K2_GPIO_Port GPIOC
#define BTN_K1_Pin GPIO_PIN_9
#define BTN_K1_GPIO_Port GPIOC
#define PWM_AH_Pin GPIO_PIN_8
#define PWM_AH_GPIO_Port GPIOA
#define PWM_BH_Pin GPIO_PIN_9
#define PWM_BH_GPIO_Port GPIOA
#define PWM_CH_Pin GPIO_PIN_10
#define PWM_CH_GPIO_Port GPIOA
#define LCD_RES_Pin GPIO_PIN_15
#define LCD_RES_GPIO_Port GPIOA
#define LCD_SCK_Pin GPIO_PIN_10
#define LCD_SCK_GPIO_Port GPIOC
#define LCD_DC_Pin GPIO_PIN_11
#define LCD_DC_GPIO_Port GPIOC
#define LCD_SDA_Pin GPIO_PIN_12
#define LCD_SDA_GPIO_Port GPIOC
#define ENCO_CS_Pin GPIO_PIN_2
#define ENCO_CS_GPIO_Port GPIOD
#define ENCO_SCK_Pin GPIO_PIN_3
#define ENCO_SCK_GPIO_Port GPIOB
#define ENCO_MISO_Pin GPIO_PIN_4
#define ENCO_MISO_GPIO_Port GPIOB
#define ENCO_MOSI_Pin GPIO_PIN_5
#define ENCO_MOSI_GPIO_Port GPIOB
#define LCD_CS_Pin GPIO_PIN_6
#define LCD_CS_GPIO_Port GPIOB
#define LCD_BLK_Pin GPIO_PIN_7
#define LCD_BLK_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
